import Vue from 'vue'
import { Button, Rate, Tabbar, TabbarItem, Icon, Dialog, Stepper, SwipeCell, ContactCard,Search, Swipe, Switch, Cascader, Area, CellGroup, Uploader, AddressList,SwipeItem, Cell, Card, Grid, GridItem, PullRefresh, List, Loading, NavBar, Lazyload, GoodsAction, GoodsActionIcon, GoodsActionButton, Popup, Form, Field } from 'vant'
Vue.use(Button)
Vue.use(Rate)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Search)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(PullRefresh)
  .use(List)
  .use(NavBar)
  .use(GoodsAction)
  .use(GoodsActionButton)
  .use(GoodsActionIcon)
  .use(Popup)
  .use(Loading)
  .use(Form)
  .use(Field)
  .use(Card)
  .use(Stepper)
  .use(SwipeCell)
  .use(Dialog)
  .use(Switch)
  .use(Cell)
  .use(Cascader)
  .use(CellGroup)
  .use(Area)
  .use(AddressList)
  .use(Uploader)
  .use(ContactCard)
  .use(Lazyload, {
    loading: require('../assets/loading.gif'),
    error: require('../assets/err.webp'),
    preload: '1'
  })
